<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<title>添加资源界面</title>
<script type="text/javascript">
	$(document).ready(function() {
		style_path = "resources/css/colors";

		$("#date-picker").datepicker();

		$("#box-tabs, #box-left-tabs").tabs();
	});
	$("input:submit").button();
</script>
</head>
<body>
	<div id="right">
		<div class="box">
			<!-- box / title -->
			<div class="title">
				<h1>添加资源</h1>
			</div>
			<!-- end box / title -->
			<form id="form" action="admin/resource!add" method="post">
				<div class="form">
					<div class="fields">
						<div class="field  field-first">
							<div class="label">
								<label for="input-small">资源名称:</label>
							</div>
							<div class="input">
								<input type="text" id="name" name="resource_Dto.name"
									class="small" />
							</div>
						</div>
						<div class="field">
							<div class="label">
								<label for="input-medium">资源简介:</label>
							</div>
							<div class="input">
								<input type="text" id="brief" name="resource_Dto.brief"
									class="small" />
							</div>
						</div>
						<div class="field">
							<div class="label">
								<label for="input-small">资源类别</label>
							</div>

							<div class="input">
								<select name="resource_Dto.kind" id="addNew">
									<option value="文档" selected="selected">文档</option>
									<option value="图片">图片</option>
									<option value="视频">视频</option>
									<option value="音频">音频</option>
									<option value="应用程序">应用程序</option>
									<option value="源码">源码</option>
								</select>
							</div>
						</div>
						<div class="field">
							<div class="label">
								<label for="file">文件:</label>
							</div>
							<div class="input input-file">
								<input type="file" id="url" name="resource_Dto.url" size="40" />
							</div>
						</div>
						<div class="buttons">
							<input type="submit" name="submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="reset" name="reset" value="重置" />
						</div>
					</div>
				</div>
			</form>
		</div>
		<!-- end forms -->
		<!-- box / left -->
		<!-- end box / left -->
		<!-- box / right -->
		<!-- end box / right -->
	</div>
</body>
</html>